package com.ruicar.afs.cloud.product.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.ruicar.afs.cloud.common.core.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @author changyu.gui
 * @version 1.0
 * @date 2020/4/26 16:15
 */
@Data
@ApiModel(value = "产品原子表")
@TableName("product_atom")
public class ProductAtom extends BaseEntity<ProductAtom> {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "原子名称")
    @NotBlank(message = "原子名称不能为空")
    private String atomName;

    @ApiModelProperty(value = "原子key")
    @NotBlank(message = "原子key不能为空")
    private String atomKey;

    @ApiModelProperty(value = "原子展示类型;基本类参数、定价类参数、贷后类参数")
    @NotBlank(message = "原子展示类型不能为空")
    private String atomShowType;

    @ApiModelProperty(value = "原子控件类型;复选框、单选框、文本框、大文本框、日期、日期时间、整数、小数、比例")
    @NotBlank(message = "原子控件类型不能为空")
    private String atomControlType;

    @ApiModelProperty(value = "控件字典类型;原子控件类型为复选框、单选框时，对应的数据字典码表")
    private String controlDictionaryType;

    @ApiModelProperty(value = "原子是否默认;0-否；1-是")
    @NotBlank(message = "原子是否默认不能为空")
    private String atomIsDefault;

    @ApiModelProperty(value = "原子适用范围;01【主产品不适用且子产品适用】、10【主产品适用且子产品不适用】、11【主产品适用且子产品适用】")
    @NotBlank(message = "原子适用范围不能为空")
    private String atomTemplateCategory;

    @ApiModelProperty(value = "是否产品修改;0-否；1-是 ")
    @NotBlank(message = "是否产品修改不能为空")
    private String isProductModify;

    @ApiModelProperty(value = "原子是否引用;0-否；1-是 ")
    private String atomIsReference;

}
